<template>
  <div class="accountSetting">
    <div class="accountSetting_title">账户设置</div>
    <div class="accountSetting_info">
      <el-row :gutter="24">
        <el-col :span="24">
          <div>
            <el-avatar :size="100" icon="el-icon-user-solid"></el-avatar>
          </div>
        </el-col>
        <el-col :span="24">
          <div class="user_icon">上传头像</div>
        </el-col>
      </el-row>
    </div>
    <div class="formDate">
      <el-form
        :model="ruleForm"
        :rules="rules"
        ref="ruleForm"
        label-width="100px"
      >
        <el-form-item label="活动名称:" prop="name">
          <el-input v-model="ruleForm.name" disabled></el-input>
        </el-form-item>
        <el-form-item label=" Email:" prop="email">
          <el-input v-model="ruleForm.email" disabled></el-input>
        </el-form-item>
        <el-form-item label=" 旧密码:" prop="password">
          <el-input type="password" v-model="ruleForm.password"></el-input>
        </el-form-item>
        <el-form-item label=" 新密码:" prop="newPsw">
          <el-input type="password" v-model="ruleForm.newPsw"></el-input>
        </el-form-item>
        <el-form-item label="  确认密码:" prop="DeterminePsw">
          <el-input type="password" v-model="ruleForm.DeterminePsw"></el-input>
        </el-form-item>
        <!-- 按钮区域 -->
        <el-form-item class="submission">
          <el-button type="primary" @click="submission()">提交</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      ruleForm: {
        name: 'admin',
        email: '8888888@qq.com',
        password: '',
        newPsw: '',
        DeterminePsw: ''
      },
      rules: {
        password: [
          { required: true, message: '请输入旧密码', trigger: 'blur' },
          { min: 6, max: 16, message: '长度在 6 到 16 个字符', trigger: 'blur' }
        ],
        newPsw: [
          { required: true, message: '请输入新密码', trigger: 'blur' },
          { min: 6, max: 16, message: '长度在 6 到 16 个字符', trigger: 'blur' }
        ],
        DeterminePsw: [
          { required: true, message: '请确定新密码', trigger: 'blur' },
          { min: 6, max: 16, message: '长度在 6 到 16 个字符', trigger: 'blur' }
        ]
      }
    }
  },
  methods: {
    submission() {}
  },
  created() {}
}
</script>
<style lang="less">
.accountSetting {
  .accountSetting_title {
    background-color: #f3f3f3;
    height: 50px;
    line-height: 50px;
    padding: 0 10px;
    margin-top: 15px;
  }
  .accountSetting_info {
    .el-col {
      text-align: center;
    }
    img {
      width: 100px;
      height: 100px;
    }
    .user_icon {
      font-size: 12px;
      color: #0099ff;
      cursor: pointer;
    }
  }
  .el-input {
    margin-top: 0;
    width: 50%;
  }
  .el-form-item__label {
    margin-left: 280px;
  }
  .submission {
    .el-form-item__content {
      margin-left: 400px !important;
    }
  }
}
</style>
